gtkwindow: Don't set the background if the window is app-paintable
authorJasper St. Pierre <jstpierre@mecheye.net>
Sat, 14 Feb 2015 02:21:42 +0000 (18:21 -0800)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 14 Feb 2015 02:22:34 +0000 (18:22 -0800)
This fixes transparent DND windows.

gtk/gtkwindow.c

index 4dbde2ab054a533bcfa7b9c09c89fbb384e570dd..2b1bcca93648191c3cff306b8a0a95b4fe5eff88 100644 (file)
@@ -7006,7 +7006,7 @@ gtk_window_realize (GtkWidget *widget)
   /* We don't need to set a background on the GdkWindow; with decorations
    * we draw the background ourself
    */
-  if (!priv->client_decorated)
+  if (!priv->client_decorated && !gtk_widget_get_app_paintable (widget))
     gtk_style_context_set_background (gtk_widget_get_style_context (widget), gdk_window);
 
   attributes.x = allocation.x;